Optimal. Leaf size=186 \[ \frac{1}{2} i b d^2 \text{PolyLog}\left (2,e^{2 i \csc ^{-1}(c x)}\right )-d^2 \log \left (\frac{1}{x}\right ) \left (a+b \csc ^{-1}(c x)\right )+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )+\frac{b e x \sqrt{1-\frac{1}{c^2 x^2}} \left (6 c^2 d+e\right )}{6 c^3}+\frac{b e^2 x^3 \sqrt{1-\frac{1}{c^2 x^2}}}{12 c}+\frac{1}{2} i b d^2 \csc ^{-1}(c x)^2-b d^2 \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )+b d^2 \log \left (\frac{1}{x}\right ) \csc ^{-1}(c x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.422263, antiderivative size = 186, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 13, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.619, Rules used = {5241, 266, 43, 4731, 6742, 453, 264, 2326, 4625, 3717, 2190, 2279, 2391} \[ \frac{1}{2} i b d^2 \text{PolyLog}\left (2,e^{2 i \csc ^{-1}(c x)}\right )-d^2 \log \left (\frac{1}{x}\right ) \left (a+b \csc ^{-1}(c x)\right )+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )+\frac{b e x \sqrt{1-\frac{1}{c^2 x^2}} \left (6 c^2 d+e\right )}{6 c^3}+\frac{b e^2 x^3 \sqrt{1-\frac{1}{c^2 x^2}}}{12 c}+\frac{1}{2} i b d^2 \csc ^{-1}(c x)^2-b d^2 \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )+b d^2 \log \left (\frac{1}{x}\right ) \csc ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5241
Rule 266
Rule 43
Rule 4731
Rule 6742
Rule 453
Rule 264
Rule 2326
Rule 4625
Rule 3717
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \frac{\left (d+e x^2\right )^2 \left (a+b \csc ^{-1}(c x)\right )}{x} \, dx &=-\operatorname{Subst}\left (\int \frac{\left (e+d x^2\right )^2 \left (a+b \sin ^{-1}\left (\frac{x}{c}\right )\right )}{x^5} \, dx,x,\frac{1}{x}\right )\\ &=d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )+\frac{b \operatorname{Subst}\left (\int \frac{-\frac{e \left (e+4 d x^2\right )}{4 x^4}+d^2 \log (x)}{\sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{c}\\ &=d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )+\frac{b \operatorname{Subst}\left (\int \left (-\frac{e \left (e+4 d x^2\right )}{4 x^4 \sqrt{1-\frac{x^2}{c^2}}}+\frac{d^2 \log (x)}{\sqrt{1-\frac{x^2}{c^2}}}\right ) \, dx,x,\frac{1}{x}\right )}{c}\\ &=d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )+\frac{\left (b d^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{\sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{c}-\frac{(b e) \operatorname{Subst}\left (\int \frac{e+4 d x^2}{x^4 \sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{4 c}\\ &=\frac{b e^2 \sqrt{1-\frac{1}{c^2 x^2}} x^3}{12 c}+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )+b d^2 \csc ^{-1}(c x) \log \left (\frac{1}{x}\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )-\left (b d^2\right ) \operatorname{Subst}\left (\int \frac{\sin ^{-1}\left (\frac{x}{c}\right )}{x} \, dx,x,\frac{1}{x}\right )-\frac{\left (b e \left (6 c^2 d+e\right )\right ) \operatorname{Subst}\left (\int \frac{1}{x^2 \sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{6 c^3}\\ &=\frac{b e \left (6 c^2 d+e\right ) \sqrt{1-\frac{1}{c^2 x^2}} x}{6 c^3}+\frac{b e^2 \sqrt{1-\frac{1}{c^2 x^2}} x^3}{12 c}+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )+b d^2 \csc ^{-1}(c x) \log \left (\frac{1}{x}\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )-\left (b d^2\right ) \operatorname{Subst}\left (\int x \cot (x) \, dx,x,\csc ^{-1}(c x)\right )\\ &=\frac{b e \left (6 c^2 d+e\right ) \sqrt{1-\frac{1}{c^2 x^2}} x}{6 c^3}+\frac{b e^2 \sqrt{1-\frac{1}{c^2 x^2}} x^3}{12 c}+\frac{1}{2} i b d^2 \csc ^{-1}(c x)^2+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )+b d^2 \csc ^{-1}(c x) \log \left (\frac{1}{x}\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )+\left (2 i b d^2\right ) \operatorname{Subst}\left (\int \frac{e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\csc ^{-1}(c x)\right )\\ &=\frac{b e \left (6 c^2 d+e\right ) \sqrt{1-\frac{1}{c^2 x^2}} x}{6 c^3}+\frac{b e^2 \sqrt{1-\frac{1}{c^2 x^2}} x^3}{12 c}+\frac{1}{2} i b d^2 \csc ^{-1}(c x)^2+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )-b d^2 \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )+b d^2 \csc ^{-1}(c x) \log \left (\frac{1}{x}\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )+\left (b d^2\right ) \operatorname{Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\csc ^{-1}(c x)\right )\\ &=\frac{b e \left (6 c^2 d+e\right ) \sqrt{1-\frac{1}{c^2 x^2}} x}{6 c^3}+\frac{b e^2 \sqrt{1-\frac{1}{c^2 x^2}} x^3}{12 c}+\frac{1}{2} i b d^2 \csc ^{-1}(c x)^2+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )-b d^2 \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )+b d^2 \csc ^{-1}(c x) \log \left (\frac{1}{x}\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )-\frac{1}{2} \left (i b d^2\right ) \operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^{2 i \csc ^{-1}(c x)}\right )\\ &=\frac{b e \left (6 c^2 d+e\right ) \sqrt{1-\frac{1}{c^2 x^2}} x}{6 c^3}+\frac{b e^2 \sqrt{1-\frac{1}{c^2 x^2}} x^3}{12 c}+\frac{1}{2} i b d^2 \csc ^{-1}(c x)^2+d e x^2 \left (a+b \csc ^{-1}(c x)\right )+\frac{1}{4} e^2 x^4 \left (a+b \csc ^{-1}(c x)\right )-b d^2 \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )+b d^2 \csc ^{-1}(c x) \log \left (\frac{1}{x}\right )-d^2 \left (a+b \csc ^{-1}(c x)\right ) \log \left (\frac{1}{x}\right )+\frac{1}{2} i b d^2 \text{Li}_2\left (e^{2 i \csc ^{-1}(c x)}\right )\\ \end{align*}
Mathematica [A] time = 0.364491, size = 157, normalized size = 0.84 \[ \frac{1}{2} i b d^2 \left (\text{PolyLog}\left (2,e^{2 i \csc ^{-1}(c x)}\right )+\csc ^{-1}(c x) \left (\csc ^{-1}(c x)+2 i \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )\right )\right )+a d^2 \log (x)+a d e x^2+\frac{1}{4} a e^2 x^4+\frac{b d e x \left (\sqrt{1-\frac{1}{c^2 x^2}}+c x \csc ^{-1}(c x)\right )}{c}+\frac{b e^2 x \left (\sqrt{1-\frac{1}{c^2 x^2}} \left (c^2 x^2+2\right )+3 c^3 x^3 \csc ^{-1}(c x)\right )}{12 c^3} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.038, size = 301, normalized size = 1.6 \begin{align*}{\frac{a{x}^{4}{e}^{2}}{4}}+a{x}^{2}de+a{d}^{2}\ln \left ( cx \right ) +{\frac{i}{2}}b{d}^{2} \left ({\rm arccsc} \left (cx\right ) \right ) ^{2}+{\frac{b{\rm arccsc} \left (cx\right ){e}^{2}{x}^{4}}{4}}+b{\rm arccsc} \left (cx\right ){x}^{2}de+{\frac{b{x}^{3}{e}^{2}}{12\,c}\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}+{\frac{bxde}{c}\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}-{\frac{ibde}{{c}^{2}}}+{\frac{bx{e}^{2}}{6\,{c}^{3}}\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}-{\frac{{\frac{i}{6}}b{e}^{2}}{{c}^{4}}}-b{d}^{2}{\rm arccsc} \left (cx\right )\ln \left ( 1+{\frac{i}{cx}}+\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) -b{d}^{2}{\rm arccsc} \left (cx\right )\ln \left ( 1-{\frac{i}{cx}}-\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) +ib{d}^{2}{\it polylog} \left ( 2,{\frac{i}{cx}}+\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) +ib{d}^{2}{\it polylog} \left ( 2,{\frac{-i}{cx}}-\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{a e^{2} x^{4} + 2 \, a d e x^{2} + a d^{2} +{\left (b e^{2} x^{4} + 2 \, b d e x^{2} + b d^{2}\right )} \operatorname{arccsc}\left (c x\right )}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{acsc}{\left (c x \right )}\right ) \left (d + e x^{2}\right )^{2}}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x^{2} + d\right )}^{2}{\left (b \operatorname{arccsc}\left (c x\right ) + a\right )}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]